package top.purity.server.tenant.feign.input;

import top.purity.framework.common.GlobalConstant;
import top.purity.server.tenant.feign.input.dto.AddUserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "user", contextId = "user", path = "/user")
public interface UserFeign {

    String PREFIX = GlobalConstant.RPC_PREFIX + "/user";

    /**
     * 创建租户时，创建用户
     * @param dto 请求体
     */
    @PostMapping(PREFIX + "/addUserByAddTenant")
    void addUserByAddTenant(@RequestBody AddUserDTO dto);
}
